package com.lagou.edu;


import com.lagou.edu.factory.ClassAnnotationApplicationContext;
import com.lagou.edu.service.TransferService;


public class Application {
    public  void  init()  {
        ClassAnnotationApplicationContext classAnnotationApplicationContext = ClassAnnotationApplicationContext.getInstance();
        classAnnotationApplicationContext.init(Application.class);
        try {
            classAnnotationApplicationContext.refresh();

        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }

    }
}
